import $r from '@/utils/request'

export function fetchStaffs(params = {}) {
  return $r('/Amaidan-Users-Web/staff/staffManage/staffManagePage', {
    method: 'GET',
    params,
  })
}
export function fetchSuppliers(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busMerchantsManage/selectMerchantsInfo', {
    method: 'GET',
    params,
  })
}
export function saveSupplier(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busMerchantsManage/updateMerchants', {
    method: 'POST',
    data: params,
  })
}
export function getSupplier(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busMerchantsInfo/supplierDetails', {
    method: 'POST',
    data: params,
  })
}
export function deleteSupplier(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busMerchantsManage/deleteMerchants', {
    method: 'POST',
    data: params,
  })
}
export function getStoreInfoList(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busStoreInfoShop/getStoreInfoList', {
    method: 'GET',
    data: params,
  })
}
export function saveStoreInfo(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busStoreInfoShop/saveStoreInfo', {
    method: 'POST',
    data: params,
  })
}
export function getStoreInfo(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busStoreInfoShop/getstoreInfo', {
    method: 'POST',
    data: params,
  })
}
//  ················员工管理
export function fetchStaff(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busMerchantsManage/selectMerchantsInfo', {
    method: 'GET',
    params,
  })
}
export function getStaff(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busStoreInfoShop/getstoreInfo', {
    method: 'POST',
    data: params,
  })
}
export function deleteStaff(params = {}) {
  return $r('/Amaidan-Users-Web/staff/staffManage/deleteStaff', {
    method: 'POST',
    data: params,
  })
}
